<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>inspect_type_links.second | My Python Project</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Python Project</a>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="inspect_type_links.html">inspect_type_links</a>.<wbr/></span>second <span class="m-thin">module</span>
        </h1>
        <p>Second module</p>
        <div class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#classes">Classes</a></li>
                <li><a href="#enums">Enums</a></li>
                <li><a href="#functions">Functions</a></li>
                <li><a href="#data">Data</a></li>
              </ul>
            </li>
          </ul>
        </div>
        <section id="classes">
          <h2><a href="#classes">Classes</a></h2>
          <dl class="m-doc">
            <dt>class <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a></dt>
            <dd>A class in the second module</dd>
            <dt>class <a href="inspect_type_links.second.FooSlots.html" class="m-doc">FooSlots</a></dt>
            <dd>A slot class</dd>
            <dt>class <a href="inspect_type_links.second.FooSlotsInvalid.html" class="m-doc">FooSlotsInvalid</a></dt>
            <dd>A slot class with an invalid annotation. Has to be separate because otherwise it would invalidate all other slot annotations in FooSlots as well.</dd>
          </dl>
        </section>
        <section id="enums">
          <h2><a href="#enums">Enums</a></h2>
          <dl class="m-doc">
            <dt id="Enum">
              <span class="m-doc-wrap-bumper">class <a href="#Enum" class="m-doc-self">Enum</a>(<a href="https://docs.python.org/3/library/enum.html#enum.Enum" class="m-doc-external">enum.Enum</a>): </span><span class="m-doc-wrap"><a href="#Enum-FIRST" class="m-doc-self" id="Enum-FIRST">FIRST</a> = 1
              <a href="#Enum-SECOND" class="m-doc-self" id="Enum-SECOND">SECOND</a> = 2</span>
            </dt>
            <dd>An enum</dd>
          </dl>
        </section>
        <section id="functions">
          <h2><a href="#functions">Functions</a></h2>
          <dl class="m-doc">
            <dt id="returns_none">
              <span class="m-doc-wrap-bumper">def <a href="#returns_none" class="m-doc-self">returns_none</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Callable" class="m-doc-external">typing.Callable</a>[[], <a href="https://docs.python.org/3/library/constants.html#None" class="m-doc-external">None</a>]) -&gt; <a href="https://docs.python.org/3/library/constants.html#None" class="m-doc-external">None</a></span>
            </dt>
            <dd>In order to disambiguate between a missing return annotation and an
annotated none, the None return annotation is kept, converted from NoneType
to None</dd>
            <dt id="returns_none_type">
              <span class="m-doc-wrap-bumper">def <a href="#returns_none_type" class="m-doc-self">returns_none_type</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Callable" class="m-doc-external">typing.Callable</a>[[], <a href="https://docs.python.org/3/library/constants.html#None" class="m-doc-external">None</a>]) -&gt; <a href="https://docs.python.org/3/library/constants.html#None" class="m-doc-external">None</a></span>
            </dt>
            <dd>And it should behave the same when using None or type(None)</dd>
            <dt id="type_cant_link">
              <span class="m-doc-wrap-bumper">def <a href="#type_cant_link" class="m-doc-self">type_cant_link</a>(</span><span class="m-doc-wrap">a: inspect_type_links.second._Hidden)</span>
            </dt>
            <dd>Annotation linking to a type that&#x27;s a part of INPUT_MODULES but not known</dd>
            <dt id="type_default_values">
              <span class="m-doc-wrap-bumper">def <a href="#type_default_values" class="m-doc-self">type_default_values</a>(</span><span class="m-doc-wrap">a: <a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a> = <a href="inspect_type_links.second.html#Enum-SECOND" class="m-doc">Enum.SECOND</a>,
              b: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>] = (&lt;class &#x27;inspect_type_links.second.Foo&#x27;&gt;,),
              c: <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a> = …)</span>
            </dt>
            <dd>A function with default values, one enum, one tuple and the third nonrepresentable (yes, the tuple looks ugly)</dd>
            <dt id="type_enum">
              <span class="m-doc-wrap-bumper">def <a href="#type_enum" class="m-doc-self">type_enum</a>(</span><span class="m-doc-wrap">a: <a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>)</span>
            </dt>
            <dd>Function referencing an enum</dd>
            <dt id="type_nested">
              <span class="m-doc-wrap-bumper">def <a href="#type_nested" class="m-doc-self">type_nested</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>, <a href="https://docs.python.org/3/library/typing.html#typing.List" class="m-doc-external">typing.List</a>[<a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>], <a href="https://docs.python.org/3/library/typing.html#typing.Any" class="m-doc-external">typing.Any</a>])</span>
            </dt>
            <dd>A function with nested type annotation</dd>
            <dt id="type_nested_string">
              <span class="m-doc-wrap-bumper">def <a href="#type_nested_string" class="m-doc-self">type_nested_string</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>, <a href="https://docs.python.org/3/library/typing.html#typing.List" class="m-doc-external">typing.List</a>[<a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>], <a href="https://docs.python.org/3/library/typing.html#typing.Any" class="m-doc-external">typing.Any</a>])</span>
            </dt>
            <dd>A function with nested string type annotation</dd>
            <dt id="type_nested_string_invalid">
              <span class="m-doc-wrap-bumper">def <a href="#type_nested_string_invalid" class="m-doc-self">type_nested_string_invalid</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[FooBar, List[Enum], Any])</span>
            </dt>
            <dd>A function with invalid nested string type annotation</dd>
            <dt id="type_return">
              <span class="m-doc-wrap-bumper">def <a href="#type_return" class="m-doc-self">type_return</a>(</span><span class="m-doc-wrap">) -&gt; <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a></span>
            </dt>
            <dd>A function with a return type annotation</dd>
            <dt id="type_return_string_invalid">
              <span class="m-doc-wrap-bumper">def <a href="#type_return_string_invalid" class="m-doc-self">type_return_string_invalid</a>(</span><span class="m-doc-wrap">a: <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>) -&gt; FooBar</span>
            </dt>
            <dd>A function with invalid return string type annotation</dd>
            <dt id="type_return_string_nested">
              <span class="m-doc-wrap-bumper">def <a href="#type_return_string_nested" class="m-doc-self">type_return_string_nested</a>(</span><span class="m-doc-wrap">) -&gt; <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>, <a href="https://docs.python.org/3/library/typing.html#typing.List" class="m-doc-external">typing.List</a>[<a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>], <a href="https://docs.python.org/3/library/typing.html#typing.Any" class="m-doc-external">typing.Any</a>]</span>
            </dt>
            <dd>A function with a string nested return type</dd>
            <dt id="type_string">
              <span class="m-doc-wrap-bumper">def <a href="#type_string" class="m-doc-self">type_string</a>(</span><span class="m-doc-wrap">a: <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>)</span>
            </dt>
            <dd>A function with string type annotation</dd>
            <dt id="type_string_invalid">
              <span class="m-doc-wrap-bumper">def <a href="#type_string_invalid" class="m-doc-self">type_string_invalid</a>(</span><span class="m-doc-wrap">a: Foo.Bar)</span>
            </dt>
            <dd>A function with invalid string type annotation</dd>
            <dt id="type_string_nested">
              <span class="m-doc-wrap-bumper">def <a href="#type_string_nested" class="m-doc-self">type_string_nested</a>(</span><span class="m-doc-wrap">a: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>, <a href="https://docs.python.org/3/library/typing.html#typing.List" class="m-doc-external">typing.List</a>[<a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>], <a href="https://docs.python.org/3/library/typing.html#typing.Any" class="m-doc-external">typing.Any</a>])</span>
            </dt>
            <dd>A function with string nested type annotation</dd>
          </dl>
        </section>
        <section id="data">
          <h2><a href="#data">Data</a></h2>
          <dl class="m-doc">
            <dt id="TYPE_DATA">
              <a href="#TYPE_DATA" class="m-doc-self">TYPE_DATA</a>: <a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>
            </dt>
            <dd></dd>
            <dt id="TYPE_DATA_ENUM">
              <a href="#TYPE_DATA_ENUM" class="m-doc-self">TYPE_DATA_ENUM</a>: <a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a> = <a href="inspect_type_links.second.html#Enum-SECOND" class="m-doc">Enum.SECOND</a>
            </dt>
            <dd></dd>
            <dt id="TYPE_DATA_STRING_NESTED">
              <a href="#TYPE_DATA_STRING_NESTED" class="m-doc-self">TYPE_DATA_STRING_NESTED</a>: <a href="https://docs.python.org/3/library/typing.html#typing.Tuple" class="m-doc-external">typing.Tuple</a>[<a href="inspect_type_links.second.Foo.html" class="m-doc">Foo</a>, <a href="https://docs.python.org/3/library/typing.html#typing.List" class="m-doc-external">typing.List</a>[<a href="inspect_type_links.second.html#Enum" class="m-doc">Enum</a>], <a href="https://docs.python.org/3/library/typing.html#typing.Any" class="m-doc-external">typing.Any</a>] = {}
            </dt>
            <dd></dd>
          </dl>
        </section>
      </div>
    </div>
  </div>
</article></main>
</body>
</html>
